package com.example.seckill.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: seckill
 * @description:
 * @author: KingCrimson
 * @create: 2022-08-05 22:58
 **/

@Controller
@RequestMapping("/demo")
public class demoController {

    /**
    * @Description: 测试页面跳转
    * @Param:
    * @return:
    * @Author: KingCrimson
    * @Date: 2022/8/5
    */
    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("name","xxxxx");
        return "hello";
    }
}
